package com.hjj.dsaa.introduction;

/**
 * <p>基本类型的包装</p>
 * @author hjj
 * @create 2020-01-11 13:47
 */
public class WrapperDemo {
    public static void main(String[] args) {
        MemoryCell m = new MemoryCell();
        m.write(new Integer(37));
        Integer warpperVal = (Integer) m.read();
        int val = warpperVal.intValue();
        System.out.println("Contents are: " + val);
    }
}
